package me.youline.dataServer.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 消息点赞记录，记录点赞人和消息的关系
 * @author linhan
 *
 */
@Entity
@Table(name = "yline_social_praise_records")
public class MsgPraiseRecord implements Serializable {

	private static final long serialVersionUID = -4834613190326331018L;

	@Id
	@GeneratedValue
	private Long id;

	/**
	 * 消息ID
	 */
	@Column
	private Long msgId;

	/**
	 * 点赞人id
	 */
	@Column
	private Long praiseUserId;

	/**
	 * 创建时间
	 */
	@Column
	private Date createTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getMsgId() {
		return msgId;
	}

	public void setMsgId(Long msgId) {
		this.msgId = msgId;
	}

	public Long getPraiseUserId() {
		return praiseUserId;
	}

	public void setPraiseUserId(Long praiseUserId) {
		this.praiseUserId = praiseUserId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
